home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Graphics Unleashed
/
PC Graphics Unleashed.iso
/
ch18
/
rtrace
/
mol2scn.bat
< prev
next >
Wrap
DOS Batch File
|
1994-01-05
|
463b
|
23 lines
@echo off
set name=%0
if "%1" == "" goto params
if "%2" == "" goto params
if not "%3" == "" goto params
if not exist %1 goto error1
if not exist %2 goto error2
cat.exe %1 >tmp
cat.exe %2 >>tmp
tr.exe [A-Z] [a-z] <tmp|sed.exe "1,$s/^ +//g"|gawk.exe -f mol2scn.awk
del tmp >nul
goto end
:params
echo %name%: usage is "%name% {atomdef_file mol_file} [>scn_file]"
goto end
:error2
shift
:error1
echo %name%: %1 not found
goto end
:end
set name=